package com.elinkway.infinitemovies.stats;

import com.elinkway.infinitemovies.application.MoviesApplication;
import com.elinkway.infinitemovies.http.api.MoviesHttpApi;
import com.elinkway.infinitemovies.utils.SharePreferenceManager;
import com.lvideo.http.bean.LVideoBaseBean;
import com.lvideo.http.bean.LVideoDataHull;

public class StatsHelper {
	
	public static void postSubChannel(){
		new Thread(){

			@Override
			public void run() {
				super.run();
				LVideoDataHull<LVideoBaseBean> result = MoviesHttpApi.postSubChannel(null);
				if(result.getDataType()==LVideoDataHull.DataType.DATA_PARSER_IS_NULL){
					SharePreferenceManager.saveVaule(MoviesApplication.getInstance()
							, SharePreferenceManager.SUBCHANNEL_POST_FLAG, true);
				}
			}
			
		}.start();
	}
}
